import request from '@/utils/request'

// 获取公示名单数据
export function getPublicity(params) {
  return request({
    url: 'api/crm/publicity/',
    method: 'get',
    params: params
  })
}

export function add(data) {
  return request({
    url: 'api/crm/publicity/',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: 'api/crm/publicity/' + id + '/',
    method: 'delete'
  })
}

export function edit(id, data) {
  return request({
    url: 'api/crm/publicity/' + id + '/',
    method: 'put',
    data
  })
}

export function multiDelete(ids) {
  return request({
    url: 'api/crm/publicity/multiple_delete/?ids=' + ids,
    method: 'delete'
  })
}

